package pojo;

import java.security.Timestamp;

// 留言簿类（MessageBoard）
public class MessageBoard {
    private int messageId;
    private int studentId;
    private String studentName;
    private String messageContent;
    private String messageDate;
    private String className;
    public MessageBoard() {
    }

    public MessageBoard(int messageId, int studentId, String messageContent, String messageDate) {
        this.messageId = messageId;
        this.studentId = studentId;
        this.messageContent = messageContent;
        this.messageDate = messageDate;
    }

    // getters and setters

    public String getClassName() {
        return className;
    }

    public MessageBoard setClassName(String className) {
        this.className = className;
        return this;
    }

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }
    public String getStudentName() {return studentName;}
    public void setStudentName(String studentName) {this.studentName = studentName;}

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public String getMessageDate() {
        return messageDate;
    }
    public void setMessageDate(String messageDate) {
        this.messageDate = messageDate;
    }

}
